package beautiful.butterfly.drds.data_exchange.statistics.jvm_info;


public class MemoryStatus
{
    public String name;
    //
    public long initSize;
    public long maxSize;
    //
    public long commitedSize;
    //
    public long usedSize;
    public long maxUsedSize = -1;
    //
    public float usedPercent;
    public float maxUsedPercent = 0;

    public void setUsedSize(long usedSize)
    {
        if (maxUsedSize < usedSize)
        {
            maxUsedSize = usedSize;
        }
        this.usedSize = usedSize;
    }

    public void setUsedPercent(float usedPercent)
    {
        if (maxUsedPercent < usedPercent)
        {
            maxUsedPercent = usedPercent;
        }
        this.usedPercent = usedPercent;
    }
}
